package com.dailyblue.java.project.bookstore.book.feign;

import com.dailyblue.java.project.bookstore.book.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "pubinfo")
public interface PubInfoService {
    @GetMapping("/pub/{id}")
    JsonResult findPubInfoById(@PathVariable("id") int id);
}
